
Component({
  properties: {

  },

  data: {
    value:0,
    box0Style:'display:none',
    box1Style:'',
  },

  methods: {
    change(value){
      let rotate0,rotate1;
      if(value<=50){
        rotate0 =`display:none`
        rotate1= `transform: rotate(${value*3.6+180}deg);`
      }else{
        rotate0 =`transform: rotate(${value*3.6}deg);`
        rotate1= `transform: rotate(0deg);`
      }
      this.setData({
        value:value,
        box0Style:rotate0,
        box1Style:rotate1
      })
    },
  }
})
